import fs from 'node:fs'
import path from 'node:path'

export default async (ctx) => {
    const { state } = ctx
    try {
        ctx.body = { status: 200, data: { id: 111, state } };
    } catch (error) {
        console.log('home/index', error)
        ctx.body = { status: e.code, data: e.message };
        // log.error(`add:${e.message}`)
    }
}

